<?php
	include("../Action/config.php");
	// $json = urldecode(file_get_contents("php://input"));
	// $arrayJson = json_decode($json,true);

	// $child_name = $arrayJson['child_name'];
	// $parent_num = $arrayJson['parent_num'];

	$child_name = $_GET['child_name'];
	$parent_num = $_GET['parent_num'];
	$child_name = json_encode($child_name);

	$sql = "DELETE FROM CHILD WHERE parent_num=$parent_num AND child_name='$child_name'";
	
	$result = mysql_query($sql);

	if ($result == '1') {
		echo "success";
	} else {
		echo $result;	
	}
?>
